#!/bin/sh
# GitLab post-transition script
# RPM only
DEST_DIR=<%= install_dir %>

case "$1" in
  0)
    # RPM install/upgrade
    ${DEST_DIR}/embedded/bin/symlink_ctl_cmds ${DEST_DIR}
    ${DEST_DIR}/bin/gitlab-ctl upgrade
    ;;
  *)
    # Noop.
    ;;
esac
